import {
  Slider,
  Input, Switch, Color, selectPageVarAndCustom, Select, Extend, Area, Link, UploadImage
} from '@/components/CustomPage/fields/widget'
import { moreLinkOps } from '@/components/CustomPage/apps/map/moreLinkops'
import { cellTitleOps } from '@/components/CustomPage/apps/map/cellTitleops'

/**
 * 小卡片图片轮播多屏设置
 */
export function smallSwiperMulOptions() {
  return [
    {
      type: Extend,
      option: {
        label: '多屏样式配置',
        name: 'mulPageInfo',
        max: 10,
        fields: [
          {
            type: Input,
            option: { label: '标题名称', name: 'title' }
          },
          {
            type: Color,
            option: { label: '背景颜色', name: 'bgColor', value: '#fff', showalpha: true }
          },
          {
            type: Color,
            option: { label: '文字颜色', name: 'textColor', value: '#fff', showalpha: true }
          },
          { type: UploadImage, option: { label: '背景图', name: 'bgImage' }},
          { type: Link, option: { label: '详情地址', name: 'link' }},
          ...moreLinkOps()
        ]
      }
    }
  ]
}
/**
 * 小卡片图片轮播单屏设置
 */
export function smallSwiperSingleOptions() {
  return [
    {
      type: Extend,
      option: {
        label: '统一样式配置',
        name: 'unifyPageInfo',
        // showRemove: false,
        max: 1,
        fields: [
          {
            type: Input,
            option: { label: '标题名称', name: 'title' }
          },
          {
            type: Color,
            option: { label: '背景颜色', name: 'bgColor', value: '#fff', showalpha: true }
          },
          {
            type: Color,
            option: { label: '文字颜色', name: 'textColor', value: '#fff', showalpha: true }
          },
          { type: UploadImage, option: { label: '背景图', name: 'bgImage' }},
          { type: Link, option: { label: '详情地址', name: 'link' }},
          ...moreLinkOps()
        ]
      }
    }
  ]
}
